//应急救援
import {
    get,
    post
} from '../utils/request'

//分页查询专家数据
export const getSpecialist = function (params) {
    return get('/group/urgent/getSpecialist', params)
}
//查询专家职称列表
export const getSpecialistJob = function (params) {
    return get('/group/urgent/getSpecialistJob', params)
}
//查询专家领域列表
export const getSpecialistMajor = function (params) {
    return get('/group/urgent/getSpecialistMajor', params)
}
//添加专家信息
export const addSpecialist = function (params) {
    return post('/group/urgent/addSpecialist', params)
}
//修改专家信息
export const updateSpecialist = function (params) {
    return post('/group/urgent/updateSpecialist', params)
}
//删除专家信息
export const deleteSpecialist = function (params) {
    return post('/group/urgent/deleteSpecialist', params)
}
//分页查询救援队数据
export const getRescueTeamInfoEntity = function (params) {
    return get('/group/urgent/getRescueTeamInfoEntity', params)
}
//添加救援队信息
export const addRescueTeam = function (params) {
    return post('/group/urgent/addRescueTeam', params)
}
//修改救援队信息
export const updateRescueTeam = function (params) {
    return post('/group/urgent/updateRescueTeam', params)
}
//删除救援队
export const deleteRescueTeam = function (params) {
    return post('/group/urgent/deleteRescueTeam', params)
}

// 集团端应急救援-救援支持-救援物资
export const getEmergencySupplies = function (params) {
    return get('/group/urgent/getEmergencySupplies', params)
}
// 集团端急物资管理
export const getEmergencySuppliesList = function (params) {
    return get(`/group/emergency-supplies/search/${sessionStorage.getItem("sensorId")}`, params)
}
// 集团端急物资管理-总条数
export const getEmergencyTotal = function (params) {
    return get(`/group/emergency-supplies/search/${sessionStorage.getItem("sensorId")}/count`, params)
}
// 集团端应急救援-救援支持-传感器配件
export const getSensorClassByPage = function (params) {
    return get('/group/urgent/getSensorClassByPage', params)
}
// 集团端应急救援-救援支持-备品备件管理
export const getSpareMterialsList = function (params) {
    return get(`/group/spare-materials/search/${sessionStorage.getItem("sensorId")}`, params)
}
// 集团端应急救援-救援支持-备品备件管理-总条数
export const getSpareTatal = function (params) {
    return get(`/group/spare-materials/search/${sessionStorage.getItem("sensorId")}/count`, params)
}
// 集团端应急救援-历史事故信息-分页查询事故上报信息
export const getAccidentReportByPage = function (params) {
    return get('/group/urgent/getAccidentReportByPage', params)
}

// 集团端应急救援-历史事故信息-查询事故类型信息列表
export const getAccidentTypeList = function (params) {
    return get('/group/urgent/getAccidentTypeList', params)
}